﻿<%@ Page Language="C#" MasterPageFile="~/Admin/PMAdmin.Master" AutoEventWireup="true" 
CodeBehind="PortfolioOverview.aspx.cs" Inherits="PM.Site.Admin.PortfolioOverview" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <br />
    <div class="form_left">
       <p style="font-size:small;font-weight:bold;">Client : &nbsp;<asp:DropDownList ID="ddlClientIds" runat="server" AutoPostBack="true"
            onselectedindexchanged="ddlClientIds_SelectedIndexChanged">
        <asp:ListItem Text="~Select all~" Value="" Selected="True"></asp:ListItem>
        </asp:DropDownList></p>
    </div>
    <div class="form_left" style="padding-left:20px;">
       <p style="font-size:small;font-weight:bold;">Security : &nbsp;<asp:DropDownList ID="ddlSecurities" runat="server" AutoPostBack="true"
            onselectedindexchanged="ddlSecurities_SelectedIndexChanged">
        <asp:ListItem Text="~Select all~" Value="" Selected="True"></asp:ListItem>
        </asp:DropDownList></p>
    </div>
    <br style="clear:both;"/>
    <br />
    <div>
        <asp:Label ID="lblMsg" runat="server" Text="" Visible="false"></asp:Label>
    </div>    
    <div style="float: left;">
        <asp:Panel ID="pnlOverviewPortfolio" runat="server" Font-Size="Medium" 
            GroupingText="Overview Portfolios" Width="510px">
            <div style="padding: 5px;">
                <asp:DataList ID="dlPortfolios" runat="server" Visible="true"
                    RepeatDirection="Horizontal" CellPadding="0" CellSpacing="0" Font-Size="Smaller"
                    ItemStyle-BackColor="#F6F4F5" ItemStyle-BorderColor="#6B6B6B"
                    ItemStyle-BorderWidth="1px" HeaderStyle-BackColor="#444444" HeaderStyle-Height="30px"
                    RepeatColumns="1" RepeatLayout="Flow">
                    <AlternatingItemStyle BackColor="#F9F9F9" />
                    <ItemStyle BackColor="#F6F4F5" BorderColor="#6B6B6B" BorderWidth="1px" />
                    <HeaderTemplate>
                        <div style="padding-bottom: 0px; height: 30px; margin: 0px; color: White;">
                            <div style="width: 122px; float: left; text-align: center; font-weight: bold; padding-left: 2px;">
                                Client ID</div>
                            <div style="width: 140px; float: left; text-align: center; font-weight: bold; padding-left: 2px;">
                                Security Id</div>
                            <div style="width: 125px; float: left; text-align: center; font-weight: bold; padding-left: 2px;">
                                Quantity</div>
                            <div style="width: 70px; float: left; text-align: center; font-weight: bold;">
                                Average Value</div>
                        </div>
                    </HeaderTemplate>
                    <HeaderStyle BackColor="#444444" Height="30px" />
                    <ItemTemplate>
                        <div style="float: left; margin-bottom: 0px; min-height: 15px; font-size: smaller;">
                            <div style="width: 120px; float: left; text-align: center; min-height: 12px; padding-left: 2px;">
                                <label>
                                <%# Eval("ClientId")%></label></div>
                            <div style="width: 140px; float: left; text-align: center; min-height: 12px; padding-left: 2px;">
                                <label>
                                <%# Eval("SecurityId")%></label></div>
                            <div style="width: 105px; float: left; text-align: right; min-height: 12px; padding: 0px 20px 0px 0px;">
                                <label>
                                <%# Eval("Quantity")%></label></div>
                            <div style="width: 70px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                <%# Eval("AvgValue", "{0:0.00}")%></label></div>
                            <div style="width: 60px; float: left; text-align: center; min-height: 12px;">
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            <br />
        </asp:Panel>
    </div>
</asp:Content>
